package com.soyotec.algorithm.status;

import cn.hutool.json.JSONUtil;

/**
 * 执行状态
 */
public class ExecutionStatus {

    /**
     * 执行状态编号
     */
    private Integer code;

    /**
     * 执行状态消息内容
     */
    private String message;

    public ExecutionStatus(Integer code, String message){
        this.code = code;
        this.message = message;
    }


    public ExecutionStatus(){}

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
    public String toCmd(){
        StringBuilder builder=new StringBuilder();
        builder.append("#").append(JSONUtil.toJsonStr(this));
        return  builder.toString();
    }
}
